﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Text;

namespace UtilZ.Dotnet.Ex.Communication.Net.Telnet
{
    /// <summary>
    /// telnet配置
    /// </summary>
    public class TelnetConfig
    {
        /// <summary>
        /// telnet ip地址,默认本机可访问的全部ip地址
        /// </summary>
        public IPAddress IPAddress { get; set; } = IPAddress.Any;

        /// <summary>
        /// telnet端口,默认23
        /// </summary>
        public int Port { get; set; } = 23;

        /// <summary>
        /// 半连接队列，默认
        /// 3
        /// </summary>
        public int Backlog { get; set; } = 3;

        /// <summary>
        /// 用户列表,为null或空不验证用户
        /// </summary>
        public IEnumerable<TelnetUserInfo> Users { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public TelnetConfig()
        {

        }
    }
}
